import util from "@/libs/util"
// 维保人员列表-维保人员列表
export function getmanageOrgInfoList (data) {
  return util.http({
    url: `/biz-maint/maint/manageOrgInfo/list`,
    method: "post",
    data
  })
}

export function getadminmanageOrgInfoList (data) {
  return util.http({
    url: `/biz-maint/maint-admin/manageOrgInfo/list`,
    method: "post",
    data
  })
}

export function getAdminmanageOrgInfo (id) {
  return util.http({
    url: `/biz-maint/maint-admin/manageOrgInfo/`+id,
    method: "get"
  })
}

export function addAdminmanageOrgInfo(data) {
  return util.http({
    url: `/biz-maint/maint-admin/manageOrgInfo/insert`,
    method: "post",
    data
  })
}

export function editAdminmanageOrgInfo (data) {
  return util.http({
    url: `/biz-maint/maint-admin/manageOrgInfo/edit`,
    method: "put",
    data
  })
}

export function createManageAcount (data) {
  return util.http({
    url: `/biz-maint/maint-admin/manageOrgInfo/createAcount`,
    method: "put",
    data
  })
}

export function createAllManageAcount (data) {
  return util.http({
    url: `/biz-maint/maint/init/initManageOrgUserName`,
    method: "post",
    data
  })
}


export function getadminOrgInfoList (data) {
  return util.http({
    url: `/biz-maint/maint-admin/manageOrgInfo/org-list`,
    method: "post",
    data
  })
}
